package OverloadExercising01;

public class Exercising01 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        double c = 1001.111;
        double d = 2000.2532;
        double e = 423.234;
        String s = "hello GUET Java";
        Methods method = new Methods();
        System.out.println(method.m(a));
        System.out.println(method.m(a, b));
        method.m(s);

        System.out.println(method.max(a, b));
        System.out.println(method.max(c, d));
        System.out.println(method.max(c, d, e));
    }
}

class Methods {
    int m(int a) {
        return a * a;
    }
    int m(int a, int b) {
        return a * b;
    }
    void m(String s) {
        System.out.println(s);
    }

    int max(int a, int b) {
        return Math.max(a, b);
    }
    double max(double a, double b) {
        return Math.max(a, b);
    }
    double max(double a, double b, double c) {
        return Math.max(Math.max(a, b) , c);
    }

}
